const env = process.env.NODE_ENV;

let mysqlConfig;

if (env === "dev") {
  mysqlConfig = {
    host: '127.0.0.1',
    user: 'root',
    password: 'my19870120xw',
    port: '3306',
    database: 'myblog'
  }
}

if (env === "production") {
  mysqlConfig = {
    host: '127.0.0.1',
    user: 'root',
    password: 'my19870120xw',
    port: '3306',
    database: 'myblog'
  }
}

module.exports = {
  mysqlConfig
}